package com.mark.design.principle.openclose2;

/**
 * @Description: 书本接口的一个实现类：《悲伤逆流成河》书本
 * @Author: Kingsley
 * @CreateDate: 2018/11/25 18:38
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
public class CryMeASadRiverBookImpl implements IBook{

    private String author;
    private String bookName;
    private double price;

    public CryMeASadRiverBookImpl(String author, String bookName, double price) {
        this.author = author;
        this.bookName = bookName;
        this.price = price;
    }

    /**
     * @return :书本的作者名称
     */
    public String queryAuthor() {
        return this.author;
    }

    /**
     * @return ：书本名称
     */
    public String queryBookName() {
        return this.bookName;
    }

    /**
     * @return ：书本的售价
     */
    public double queryPrice() {
        return this.price;
    }

}
